local shenju = fk.CreateSkill{
    name = "jin_heg__shenju",
    tags = { Skill.Compulsory },
}

Fk:loadTranslationTable{
    ["jin_heg__shenju"] = "慎惧",
    [":jin_heg__shenju"] = "锁定技，与你势力相同的其他角色明置武将牌后，你回复1点体力并弃置所有手牌。",

    ["$jin_heg__shenju1"] = "吾无二心，何至于是！",
    ["$jin_heg__shenju2"] = "吾之忠贞，可比商周之比干，蜀汉之孔明！",
}

local H = require "packages.ol_hegemony.util"

shenju:addEffect(fk.GeneralRevealed,{
    anim_type = "negative",
    can_trigger = function (self, event, target, player, data)
        return player:hasSkill(shenju.name) and target ~= player and H.compareKingdomWith(player, target) and player:isWounded()
        and target:isAlive()
      end,
    on_cost = Util.TrueFunc,
    on_use = function (self, event, target, player, data)
        local room = player.room
        room:recover({
          who = player,
          num = 1,
          recoverBy = player,
          skillName = shenju.name,
        })
        player:throwAllCards("h")
    end
})

return shenju